-- GENERATED SPELL FOR [Rogue Flame Spirit] --


function spell0_4036(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(6205,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4036', 542, 1)
end

function spell1_4036(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(1094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4036', 17000, 1)
end

function Sorts_4036(pUnit, Event)
local choix_sorts_4036 = math.random(0, 1)
if choix_sorts_4036 == 0 then
pUnit:RegisterEvent('spell0_4036', 1, 1)
end
if choix_sorts_4036 == 1 then
pUnit:RegisterEvent('spell1_4036', 1, 1)
end
end

function mob4036_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4036', math.random(1500, 3000), 1)
end

function mob4036_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4036_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4036_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4036, 1, 'mob4036_Action')
RegisterUnitEvent(4036, 2, 'mob4036_Leave')
RegisterUnitEvent(4036, 3, 'mob4036_Kill')
RegisterUnitEvent(4036, 4, 'mob4036_Die')
